import {defineStore} from 'pinia'
import {reactive} from 'vue'

interface userInfo{
    avatarUrl:string,
    city:string,
    gender:number,
    language:string,
    nickName:string,
    province:string
}

export let userInfo1 = reactive<userInfo>({
    avatarUrl: '' as string,
    city: '' as string,
    gender: 0 as number,
    language: '' as string,
    nickName: '' as string,
    province: '' as string
})

export const mainStore = defineStore('mainStore',{
    state:()=>{
        return{
            num1:0,
            userInfo: userInfo1
        }
    },
    getters:{},
    actions:{}
})